<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    class Person{
        constructor() {
            this.locate = () =>console.log('instance')
        }
        locate(){
            console.log('prototype')
        }
    }

    let p = new Person();
    let p2 = new Person();

    console.log('p:',p)
    console.log('Person',[Person])
    console.log('Person.prototype',Person.prototype)
    p.locate();
    p2.locate()

    console.log('-----')
    Person.prototype.locate();
    Person.prototype.locate = () =>console.log('updated-prototype')
    Person.prototype.locate();


</script>

</body>
</html>